package com.xcc.myredis;

import com.xcc.myredis.service.MyRedisService;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.ApplicationContext;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;

@SpringBootApplication
public class MySpringBootStarter {

    /*public static void main(String[] args) {
        ApplicationContext applicationContext = SpringApplication.run(MySpringBootStarter.class, args);
        MyRedisService bean = applicationContext.getBean(MyRedisService.class);
        bean.insert("test","test");
    }*/

    public static void main(String[] args) {
        SpringApplication.run(MySpringBootStarter.class, args);
    }

}
